<template>
  <div class="talentRecruitmentList">
    <div class="headertop">
      <div class="warpContent">
        <div class="title">实力团队</div>
        <div class="subtitle">生意港诚邀您的加入</div>
      </div>
    </div>
    <div class="content" v-if='Object.keys(result)'>
      <div class="warprequire">
        <div>
          <div class="title">岗位：{{ result.post }}</div>
          <div class="contentC">
            <p>{{ result.requirement }}</p>
          </div>
        </div>
      </div>
      <div class="warprequire">
        <div class="contentC" v-html="result.content"></div>
      </div>
    </div>
    <div class="four" v-else>404</div>
  </div>
</template>
<script>
import axios from "axios";
export default {
  data(){
    return {
      result: {}
    }
  },
  async mounted() {
    let result = {};
    let {data} = await axios.post(
      "/officialwebsiteapi/recruitment/apiGetRecruitmentDetails",
      { id: this.$route.query.id }
    );
    if (data.code === 1000) {
      result = data.data.item;
    }
    this.result =  result 
  }
};
</script>
<style lang="scss" scoped>
.four{
  font-size: 38px;
  min-height: 500px;
  text-align: center;
  line-height: 500px;
}
.headertop {
  width: 100%;
  height: 688px;
  background: url("http://syg-photo.oss-cn-shanghai.aliyuncs.com/yingdin/photo/talentRecruitmentbg.png-1593655211000");
  background-size: 100% 100%;
  .warpContent {
    margin: 0 auto;
    width: 1200px;
    padding-top: 260px;
    text-align: right;
  }
  .title {
    padding-right: 92px;
    font-size: 80px;
    color: #fff;
    font-weight: 700;
  }
  .subtitle {
    margin-top: 16px;
    padding-right: 104px;
    font-size: 42px;
    letter-spacing: 4px;
    color: #ffffff;
  }
}
.content {
  width: 1233px;
  margin: 0 auto;
  padding-top: 98px;
  padding-bottom: 100px;
  & > div:first-of-type {
    display: flex;
    justify-content: space-between;
  }
  .btn {
    background-color: #6d71fd;
    border-radius: 23px;
    font-size: 33px;
    line-height: 55px;
    height: 55px;
    padding: 0 45px;
    letter-spacing: 3px;
    color: #ffffff;
  }
  .warprequire {
    margin-top: 56px;
  }
  .title {
    font-size: 25px;
    font-weight: 700;
    color: #313131;
    line-height: 50px;
  }
}
</style>
